<template>
  <div>
    
      <span>{{ name}}</span>
       <button @click="add(ind)">+</button
      >
     <span>{{ count }}</span> 
      <button @click="jian(ind)">-</button>
    
  </div>
</template>

<script>
export default {
  props: ["name",  "count","ind"],
  methods:{
      add(ind){
         this.$emit("jia",ind)
      },
      jian(ind){
          this.$emit("del",ind)
      }
  }
};
</script>

<style>
</style>